class Part_consumeFormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Part_consumeTable'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Part_consumesApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Part_consumeFormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Part_consumesAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "part_consumes": "search"

                
myapp.addInitializer -> 
    myapp.Part_consumes_app = new Part_consumesApp()
    myapp.Part_consumes_app.router = new Part_consumesAppRouter controller: myapp.Part_consumes_app

myapp.vent.trigger("routing:started")
